﻿using System;

namespace WhileAutoSummator
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Sum Calculator");

            int sum = 0;
            int current = 0;
            string currentString = "0";

            while (currentString != "=")
            {
                current = int.Parse(currentString);
                sum += current;
                currentString = Console.ReadLine();
            }

            Console.WriteLine("Sum = " + sum);

            Console.ReadKey();
        }
    }
}
